package com.pacy.pacybaseproject.activitys;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.pacy.pacybaseproject.BR;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.base.BaseXActivity;
import com.pacy.pacybaseproject.databinding.ActivityExSuccessBinding;
import com.pacy.pacybaseproject.viewmodels.ExSuccessViewModel;
import com.xuexiang.xui.utils.StatusBarUtils;

/**
 * 兑换成功
 */
public class ExSuccessActivity extends BaseXActivity<ActivityExSuccessBinding, ExSuccessViewModel> {

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_ex_success;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, StatusBarUtils.getStatusBarHeight(ExSuccessActivity.this));
        binding.view.setLayoutParams(params);
    }
}